﻿--[[
   @brief    custom id define
   @author   sogoodchen
   @version  1.0
   @date     2015-03-07
--]]

layout_event = {
    RESTORE_LAYOUT_FINISH = "layout_event.RESTORE_LAYOUT_FINISH", --param: {'id': id}
    REMOVING_LAYOUT = "layout_event.REMOVING_LAYOUT",    --param: {'id': id}
}

CommonTips_event = {
    SHOW_COMMON_WEB_TIPS = "CommonTips_event.SHOW_COMMON_WEB_TIPS",
}

-- login
login_event = {
    LOGIN_SUCCESS = "LOGIN_SUCCESS", -- param: {'uin':uin}
    LOGIN_FAILED = "LOGIN_FAILED",   -- param: {'uin':uin,'ret':err}
    LOGIN_GOTO_ENTER_VIEW = "LOGIN_GOTO_ENTER_VIEW", -- param: none
    LOGIN_EXIT_TGP = "LOGIN_EXIT_TGP", -- param: none
    LOGIN_CHANGE_PIC = "LOGIN_CHANGE_PIC", -- param: none
    LOGIN_SUBMIT_PIC = "LOGIN_SUBMIT_PIC", -- param: {answer}
    LOGIN_SUBMIT_PG = "LOGIN_SUBMIT_PG", -- param: {'answer':answer}
    LOGIN_QUICK_LOGIN = "LOGIN_QUICK_LOGIN", -- param: {'uin':uin}
    LOGIN_SET_PSW_MASK = "LOGIN_SET_PSW_MASK", -- param: {'show'}
    LOGIN_START_LOGIN = "LOGIN_START_LOGIN", -- param: {'uin':uin,'option':option, 'pwd':pwd}
    LOGIN_RESTART_TGP = "LOGIN_RESTART_TGP", -- param: none
    LOGIN_DOWNLOAD_NEW_VERSION = 'LOGIN_DOWNLOAD_NEW_VERSION', -- param:
    LOGIN_SHOW_TEDIT = "LOGIN_SHOW_TEDIT", -- param: {'show'}
    LOGIN_SET_TEDIT_FOCUS = "LOGIN_SET_TEDIT_FOCUS", -- param: {'show'}
    LOGIN_BY_HISTORY = "LOGIN_BY_HISTORY", -- param: {'uin':uin,'option':option}
    LOGIN_GET_HISTORY = "LOGIN_GET_HISTORY", -- param: none
    LOGIN_CANCEL_LOGIN = "LOGIN_CANCEL_LOGIN", -- param: none
    LOGIN_GOTO_PG_VIEW = "LOGIN_GOTO_PG_VIEW", -- param: none
    LOGIN_CANCEL_PG_CHECK = "LOGIN_CANCEL_PG_CHECK", -- param: none
    LOGIN_DELETE_UIN = "LOGIN_DELETE_UIN", -- param: {'uin':uin}
    LOGIN_SHOW_LOGINVIEW = "LOGIN_SHOW_LOGINVIEW", -- param: none
    LOGIN_QRCODE_CFG_SWITCH = "LOGIN_QRCODE_CFG_SWITCH",  --param: {'show_qrcode': true or false}  
    LOGIN_WND_MINIMIZE = "LOGIN_WND_MINIMIZE",  -- param: none
    LOGIN_WND_RESTORE = "LOGIN_WND_RESTORE",  -- param: none
    LOGIN_EVT_CHECK_SVRTIPS = "LOGIN_EVT_CHECK_SVRTIPS",    -- param: none
    LOGIN_FB_NOT_BIND = "LOGIN_FB_NOT_BIND",
    CLOSE_IND_WINDOW_FOR_KICKOFF = "login_event.CLOSE_IND_WINDOW_FOR_KICKOFF",
}

-- sun_account_login
sub_account_login_event = {
    SUB_ACCOUNT_ADD_ACCOUNT = "SUB_ACCOUNT_ADD_ACCOUNT",  -- param: {'game_id':game_id}
    SUB_ACCOUNT_LOGIN_SUCCESS = "SUB_ACCOUNT_LOGIN_SUCCESS", -- param: {'uin':uin}
    SUB_ACCOUNT_LOGIN_FAILED = "SUB_ACCOUNT_LOGIN_FAILED",   -- param: {'uin':uin,'ret':err}
    SUB_ACCOUNT_LOGIN_GOTO_ENTER_VIEW = "SUB_ACCOUNT_LOGIN_GOTO_ENTER_VIEW", -- param: none
    SUB_ACCOUNT_LOGIN_CHANGE_PIC = "SUB_ACCOUNT_LOGIN_CHANGE_PIC", -- param: none
    SUB_ACCOUNT_LOGIN_SUBMIT_PIC = "SUB_ACCOUNT_LOGIN_SUBMIT_PIC", -- param: {answer}
    SUB_ACCOUNT_LOGIN_START_LOGIN = "SUB_ACCOUNT_LOGIN_START_LOGIN", -- param: {'uin':uin,'option':option, 'pwd':pwd}
    SUB_ACCOUNT_LOGIN_CANCEL_LOGIN = "SUB_ACCOUNT_LOGIN_CANCEL_LOGIN", -- param: none
    SUB_ACCOUNT_SHOW_TIPS = "SUB_ACCOUNT_SHOW_TIPS", 
        -- param: {'first_line':first_line_text,'second_line':second_line, 'icon':icon}
}

-- login_tips
login_tips_event = {
    
}

-- main window
main_event = {
    MAIN_WND_SHOWN = "MAIN_WND_SHOWN", -- no param
    MAIN_WND_CLOSED = "MAIN_WND_CLOSED", -- no param
    UPDATE_VISIBLE_GAME_LIST = "UPDATE_VISIBLE_GAME_LIST", -- no param
    UPDATE_ALL_GAME_BASE_INFO = "UPDATE_ALL_GAME_BASE_INFO", -- no param
    UPDATE_GAME_STATE = "UPDATE_GAME_STATE", -- param: {'game_id':game_id} (game_id equals to 0 means all games)
    UPDATE_PLUGIN_STATE = "UPDATE_PLUGIN_STATE", -- param: {'game_id':game_id} (game_id equals to 0 means all games)
    SELECTED_ZONE_ID_CHANGED = "SELECTED_ZONE_ID_CHANGED",  -- {'game_id':game_id, 'server_id': server_id}
    BANNER_ADDING_GAME = "main_event.BANNER_ADDING_GAME", -- {}
    BANNER_ADDING_GAME_CANCEL = "main_event.BANNER_ADDING_GAME_CANCEL", -- {}
    -- { 添加结果， result : 参见gamelib:add_installed_game返回值}
    BANNER_ADD_GAME_RESULT = "main_event.BANNER_ADD_GAME_RESULT",
    UPDATE_USER_INFO = "UPDATE_USER_INFO", -- no param
    UPDATE_MARQUEE_INFO = "UPDATE_MARQUEE_INFO", -- no param
    UPDATE_COUPON_TOEXCHANGE = "UPDATE_COUPON_TOEXCHANGE",  -- {參見ADDON_ON_PRIVILEGE_UPDATE_TOEXCHANGE返回值}
    UPDATE_COUPON_RES_DRAW_ACT = "UPDATE_COUPON_RES_DRAW_ACT", -- {參見UPDATE_COUPON_RES_DRAW_ACT返回值}
    END = "main_event.END",
    UPDATE_GAME_START = "UPDATE_GAME_START", -- no param
    GAME_TIP_VISIBLE_CHANGED = "main_event.GAME_TIP_VISIBLE_CHANGED",  -- {game_id:xx, visible:true/false}
    GAME_GIFT_VISABLE_CHANGED = "main_event.GAME_GIFT_VISABLE_CHANGED",  -- {game_id:xx, gift_count:1 / 2}
    MTGP_ENTRY_ICON_STATE_UPDATE = "main_event.MTGP_ENTRY_ICON_STATE_UPDATE",
}

-- 新版主界面 事件
mainframe_event = {
    CHANGE_MAINFRAME_MODE = "CHANGE_MAINFRAME_MODE",         -- {mode_id:xx}
    CHANGE_MAX_MODE = "CHANGE_MAX_MODE",
    SHOW_FLOAT_TIPS = "SHOW_FLOAT_TIPS",    -- {is_show:xx, xoffset:xx, yoffset:xx, tips_content:xx}
    MAINFRAME_WND_SHOWN = "MAINFRAME_WND_SHOWN", -- no param
    SHOW_MAIN_WND = "SHOW_MAIN_WND",    -- no param
    OPEN_SOCIAL_PANEL = "OPEN_SOCIAL_PANEL",     -- param:{'show': 1 or 0}
    WINDOW_POSITION_CHANGE = "WINDOW_POSITION_CHANGE",  -- no param
    SCROLL_TO_COMPOSELIST_TOP = "SCROLL_TO_COMPOSELIST_TOP", -- no param
    MINI_WINDOW_POSITION_CHANGE = "MINI_WINDOW_POSITION_CHANGE", -- no param
    MAIN_WND_MINIMIZE = "MAIN_WND_MINIMIZE",  -- no param
    MAIN_WND_RESTORE = "MAIN_WND_RESTORE",  -- no param
--    PAGE_CACHE_SWITCH_CHANGE = "PAGE_CACHE_SWITCH_CHANGE",   -- param:{'cache_switch': 1 or 0}
};

-- 主界面动画事件
mainframe_animation_event = {
    RESIZE_ANIMATION_END = "RESIZE_ANIMATION_END",  -- {mode:xxx}
};

-- banner 事件
banner_event = {
    INIT_BANNER_LIST = "INIT_BANNER_LIST",   -- {parent_id:xx}
    FOCUS_BANNER_ITEM = "FOCUS_BANNER_ITEM", -- {module_id:xx, module_url:xx}
    UPDATE_GAME_SERVERS = "UPDATE_GAME_SERVERS", -- param: {'game_id':game_id} (game_id equals to 0 means all games)
    UPDATE_GAME_STATE = "UPDATE_GAME_STATE", -- param: {'game_id':game_id} (game_id equals to 0 means all games)
    UPDATE_PLUGIN_STATE = "UPDATE_PLUGIN_STATE", -- param: {'game_id':game_id} (game_id equals to 0 means all games)
    BANNER_ADDING_GAME = "BANNER_ADDING_GAME", -- {}
    BANNER_ADDING_GAME_CANCEL = "BANNER_ADDING_GAME_CANCEL", -- {}
    BANNER_ADD_GAME_RESULT = "BANNER_ADD_GAME_RESULT", -- { 添加结果， result : 参见gamelib:add_installed_game返回值}
    JUMP_MODULE_WEB = "JUMP_MODULE_WEB",   -- {module_id:xxx}
    ZONE_LIST_SHOW  = "ZONE_LIST_SHOW",    -- {show:true|false, game_id:xxx} 
    UPDATE_BANNER_CONFIG = "UPDATE_BANNER_CONFIG",   -- param: {'game_id':game_id} (game_id equals to 0 means all games)
    UPDATE_BANNER_GAME_LIST = "UPDATE_BANNER_GAME_LIST", -- {game_count : xx}
    GET_GC_MARQUEE_INFO = "GET_GC_MARQUEE_INFO",
    UPDATE_GAME_BASE_INFO = "UPDATE_GAME_BASE_INFO",   --{}
    SHOW_QRCODE = "SHOW_QRCODE",  -- param: {is_show: xxx, game_id:xxx, offset_x:xxx, offset_y:xxx}
    QUERY_GAME_INFO = "QUERY_GAME_INFO", -- param: {'game_id':game_id}
    ADD_GAME_CONFLICT = "ADD_GAME_CONFLICT", -- param: {path: 添加游戏的路径}
};

wonderful_panel_event = {
    INIT_PANEL = "INIT_PANEL",   -- {parent_id:xx}
    OPEN_PANEL = "OPEN_PANEL",   -- {}
    REFRESH_PANEL_HOTNEW = "REFRESH_PANEL_HOTNEW",  -- banner--发现精彩--hot\new刷新
};

main_web_event = {
    ON_JS_CALLBACK_TO_EXTENDBOARD = "ON_JS_CALLBACK_TO_EXTENDBOARD",   --param:{'funname':funname,'json':json}
    ON_JS_CALLBACK_TO_MAINFRAME = "ON_JS_CALLBACK_TO_MAINFRAME",       --param:{'funname':funname,'json':json}
    ON_JS_CALLBACK_TO_LANDINGPAGE = "ON_JS_CALLBACK_TO_LANDINGPAGE",   --param:{'funname':funname,'json':json}
    ON_JS_CALLBACK_TO_WEB_BOTTOM = " ON_JS_CALLBACK_TO_WEB_BOTTOM",    --param:{'funname':funname,'json':json}
    ON_JS_CALLBACK_TO_HELPER = "ON_JS_CALLBACK_TO_HELPER", -- param:{'func_name':func_name, 'json':json}
    SEND_TGP_FRIEND_LIST = "SEND_TGP_FRIEND_LIST",
    SEND_GC_MARQUEE_INFO = "SEND_GC_MARQUEE_INFO",
    ON_JS_CALLBACK_TO_RAIL_PROXY = "ON_JS_CALLBACK_TO_RAIL_PROXY",     --param:{'funname':funname,'json':json}
    TGP_CLOSE = 'TGP_CLOSE',
    ON_JS_CALLBACK_TO_GAME_LIBRARY = "ON_JS_CALLBACK_TO_GAME_LIBRARY",    --param:{'funname':funname,'json':json}
    ON_JS_CALLBACK_TO_GAME_MGR = "ON_JS_CALLBACK_TO_GAME_MGR",      --param:{'funname':funname,'json':json}
    ON_JS_CALLBACK_TO_FRAME_BOTTOM = "ON_JS_CALLBACK_TO_FRAME_BOTTOM",  --param:{'funname':funname,'json':json}
}

web_register_event = {
    REGISTER_SUCCESS_EVENT = "REGISTER_SUCCESS_EVENT",      -- param:{'event_name':event_name}
}
-- extendboard
extendboard_event = {
    LOAD_EXTENDBOARD_SUCCESS = "LOAD_EXTENDBOARD_SUCCESS",   -- param: {'url':url}
    ON_JS_CALLBACK_GL = "ON_JS_CALLBACK_GL",   -- param:{'json':json}
    OPEN_EXTENDBOARD = "OPEN_EXTENDBOARD",      -- no param
    ON_JS_CALLBACK_GC = "ON_JS_CALLBACK_GC",    -- 礼包中心
    CLOSE_EXTENDBOARD = "CLOSE_EXTENDBOARD",
    OPEN_GAME_DETIAL = "OPEN_GAME_DETIAL",
    OPEN_GAME_LIST = "OPEN_GAME_LIST",
    UPDATE_GAMELIBRARY_ALPHA = "UPDATE_GAMELIBRARY_ALPHA",
    ON_JS_CALLBACK_MOBILE_GMAE = "ON_JS_CALLBACK_MOBILE_GMAE",    -- 手机游戏
    ON_JS_CALLBACK_WEB_GMAE = "ON_JS_CALLBACK_WEB_GMAE",    --  param:{'json':json} 网页游戏
    ON_EXTENDBOARD_CATEGORY_CHANGE = "ON_EXTENDBOARD_CATEGORY_CHANGE", -- param:{"category":category, "sort":sort}
    CHECK_IS_IN_GAME_LIST = "CHECK_IS_IN_GAME_LIST",  -- param:{"game_id":xxxx}
    CHECK_IS_IN_VISIBLE_GAME_LIST = "CHECK_IS_IN_VISIBLE_GAME_LIST",  -- param:{"game_id":xxxx}
    QUERY_PLAY_GAME_LIST = "QUERY_PLAY_GAME_LIST",
    QUERY_ATTENT_GAME_LIST = "QUERY_ATTENT_GAME_LIST",
    QUERY_NEAREST_GAME_LIST = "QUERY_NEAREST_GAME_LIST",
    QUERY_REC_GAME_NAME = "QUERY_REC_GAME_NAME",
    QUERY_EXPECT_GAME_RANK = "QUERY_EXPECT_GAME_RANK",
    ADD_WEB_GAME = "ADD_WEB_GAME",  -- param:{"game_id":xxxx}
    LAUNCH_WEB_GAME = "LAUNCH_WEB_GAME", -- param:{"game_id":xxx, "server_id":xxx}
    ADD_MOBILE_GAME_ASSISTANT = "ADD_MOBILE_GAME_ASSISTANT",  -- param:{"game_id":xxxx}
    CHECK_HAS_MOBILE_GAME_ASSISTANT = "CHECK_HAS_MOBILE_GAME_ASSISTANT",  -- param:{"game_id":xxxx}
    ON_EXTENDBOARD_CATEGORY_CHANGE = "ON_EXTENDBOARD_CATEGORY_CHANGE", -- param:{"category":category, "sort":sort}
    EXTENDBOARD_CREATED = "extendboard_event.EXTENDBOARD_CREATED",
    QUERY_GAME_INFO_BY_ID = "QUERY_GAME_INFO_BY_ID",  -- param:{"game_id":xxxx}
    QUERY_GAME_INFO_BY_ID_V2 = "QUERY_GAME_INFO_BY_ID_V2",  -- param:{"game_id":xxxx}
    JC_GET_FIRST_OPEN_DETAIL = "JC_GET_FIRST_OPEN_DETAIL",  --是否第一次打开 param:{"isFirst:xxx"}
    -- JC_SET_FIRST_OPEN_DETAIL = "JC_SET_FIRST_OPEN_DETAIL",  --是否第一次打开 param:{"isFirst:xxx"}
    SHOW_CUSTOM_COVER_TIPS = "SHOW_CUSTOM_COVER_TIPS",  -- param:{"title":xxxx, "desc":xxx, "ok_btn_text":xxx, "cancel_btn_text":xxx}
}

-- game_library
game_library_event = {
    LOAD_SUCCESS = 'LOAD_SUCCESS',    --param: {}
    GET_USER_LEVEL = 'GET_USRE_LEVEL', --param:{"type":"get_current_level"}
    GAME_ACTIVATE_RESULT = 'GAME_ACTIVATE_RESULT', --param:{}
    REQUEST_GAME_INSTALL = 'REQUEST_GAME_INSTALL', --state:1/0 1install,0 uninstall
    JUMP_GAME_DETAIL = "JUMP_GAME_DETAIL", --param: {"game_id":"game_id"}
    UPDATE_BIG_EVENT_GIFT_INFO = "UPDATE_BIG_EVENT_GIFT_INFO",
    GET_GAME_STATES = "GET_GAME_STATES",  --param: {}
}

--主界面菜单事件
main_menue_event = {
    MAIN_MENUE_OPEN_MENUE = "main_menue_event.MAIN_MENUE_OPEN_MENUE",    --param: {'x':xoffset, 'y':yoffset}  菜单显示位置
    MAIN_MENUE_SETTING = "main_menue_event.MAIN_MENUE_SETTING",             --param:{'tab_id':x}
    MAIN_MENUE_CHANGE_SKIN = "main_menue_event.MAIN_MENUE_CHANGE_SKIN",     --param:{none}
    MAIN_MENUE_ADD_GAME = "main_menue_event.MAIN_MENUE_ADD_GAME",          --param:{none}
    MAIN_MENUE_ABOUT = "main_menue_event.MAIN_MENUE_ABOUT",              --param:{none}
    MAIN_MENUE_ABOUT_LOAD = "main_menue_event.MAIN_MENUE_ABOUT_LOAD",    --param:{none}
    MAIN_MENUE_ADVICE = "main_menue_event.MAIN_MENUE_ADVICE",             --param:{none}
    MAIN_MENUE_TGP_UPDATE = "main_menue_event.MAIN_MENUE_TGP_UPDATE",    --param:{none}
    MAIN_MENUE_SITCH_USER = "main_menue_event.MAIN_MENUE_SITCH_USER",    --param:{none}
    MAIN_MENUE_SITCH_OFFLINE = "main_menue_event.MAIN_MENUE_SITCH_OFFLINE",  --param:{"account_id":tgp_id}
    MAIN_MENUE_EXIT_TGP = "main_menue_event.MAIN_MENUE_EXIT_TGP",        --param:{none}
    MAIN_MENUE_UPDATE_TIPS = "main_menue_event.MAIN_MENUE_UPDATE_TIPS",        --param:{none}
    MAIN_MENUE_WILL_EXIT_TGP = "main_menue_event.MAIN_MENUE_WILL_EXIT_TGP",        --param:{none}
}

-- landingpage
landingpage_event = {
    LOAD_LANDING_PAGE_SUCCESS = "LOAD_LANDING_PAGE_SUCCESS",   -- param: {'url':url}
    OPEN_LANDINGPAGE = "OPEN_LANDINGPAGE",      -- no param
    CJ_GAME_LAUNCH_DETIAL_INFO = "CJ_GAME_LAUNCH_DETIAL_INFO",
    CJ_GAME_LAUNCH_SERVER_INFO = "CJ_GAME_LAUNCH_SERVER_INFO",
    CJ_GAME_LAUNCH_VERSIONS_INFO = "CJ_GAME_LAUNCH_VERSIONS_INFO",
    CJ_UPDATE_GAME_STATE = "CJ_UPDATE_GAME_STATE",
    CJ_UPDATE_PLUGIN_STATE = "CJ_UPDATE_PLUGIN_STATE",
    CJ_UPDATE_CHILD_PAGE_DETAIL_INFO = "CJ_UPDATE_CHILD_PAGE_DETAIL_INFO",
    ON_JS_CALLBACK_DNF = "ON_JS_CALLBACK_DNF",
    CJ_GAME_LAUNCH_OPEN_SERVER = "CJ_GAME_LAUNCH_OPEN_SERVER",
    CJ_GAME_LAUNCH_UPDATE_CONFIG = "CJ_GAME_LAUNCH_UPDATE_CONFIG",
    LANDINGPAGE_CREATED = "LANDINGPAGE_CREATED",
}

-- preload
preloadpage_event = {
    PRELOAD_LOAD_PAGE_SUCCESS = "PRELOAD_LOAD_PAGE_SUCCESS",   -- param: {'url':url}
}

-- launchpage
launchpage_event = {
    LAUNCH_LOAD_PAGE_SUCCESS = "LAUNCH_LOAD_PAGE_SUCCESS",
    LAUNCHPAGE_CALL_PRELOADPAGE = "LAUNCHPAGE_CALL_PRELOADPAGE",
}

-- network_acc_event
network_acc_event = {
    OPEN_ISP_WINDOW = 'OPEN_ISP_WINDOW',
    ClOSE_ISP_WINDOW = 'ClOSE_ISP_WINDOW',


    OPEN_ISP_PROCESS_WINDOW = 'OPEN_ISP_PROCESS_WINDOW',
    ClOSE_ISP_PROCESS_WINDOW = 'ClOSE_ISP_PROCESS_WINDOW',

    OPEN_ISP_RESULT_WINDOW = 'OPEN_ISP_RESULT_WINDOW',

    OPEN_NODE_SETTING_WINDOW = 'OPEN_NODE_SETTING_WINDOW',
    OPEN_NODE_SETTING_WARNING_WINDOW = 'OPEN_NODE_SETTING_WARNING_WINDOW',

    OPEN_ROUTER_ADMIN_WINDOW = 'OPEN_ROUTER_ADMIN_WINDOW',
}

startup_acc_event = {
    PRELOAD_WINDOW_CLOSE_ON_TOOLBOX = 'PRELOAD_WINDOW_CLOSE_ON_TOOLBOX',
}

-- cf_repair
cf_repair_event = {
    CF_REPAIR_LOAD_PAGE_SUCCESS = "CF_REPAIR_LOAD_PAGE_SUCCESS",
}

-- popup_wnd
popup_wnd_event = {
    REPAIR_GAME_GUIDE = "REPAIR_GAME_GUIDE",
    FAILED_TO_START = "FAILED_TO_START",
    IDENTITY_VERIFICATION = "IDENTITY_VERIFICATION",
    EXIT_GAME = "EXIT_GAME",                                      -- param: {'json':json}
    PRE_UPDATE_GAME = "PRE_UPDATE_GAME",                          -- param: {'json':json}
    SHOW_LOW_SPEED_TIP = "SHOW_LOW_SPEED_TIP",
    SHOW_NETBAR_ORDER_TIPS = "SHOW_NETBAR_ORDER_TIPS",              -- param: string
    SHOW_WEGAME_QUALIFY_LOGIN_TIPS = "SHOW_WEGAME_QUALIFY_LOGIN_TIPS",  -- param : string
    SHOW_TOOLBOX_WARNING_TIPS = "SHOW_TOOLBOX_WARNING_TIPS",
    SHOW_CLOUD_GAME_ALREADY_RUNNING_TIPS = "SHOW_CLOUD_GAME_ALREADY_RUNNING_TIPS",
}

-- toolbox
tool_box_event = {
    TOOL_BOX_LOAD_PAGE = "TOOL_BOX_LOAD_PAGE",
    TOOL_BOX_CLOSE_PAGE = "TOOL_BOX_CLOSE_PAGE",
    TOOL_BOX_ON_JS_CALLBACK_TB = "TOOL_BOX_ON_JS_CALLBACK_TB",
    OPEN_DNF_REPAIR_PAGE = "OPEN_DNF_REPAIR_PAGE",
    OPEN_CF_REPAIR_PAGE = "OPEN_CF_REPAIR_PAGE",
    OPEN_LOL_REPAIR_PAGE = "OPEN_LOL_REPAIR_PAGE",
    OPEN_REPAIR_GAME_PAGE = "OPEN_REPAIR_GAME_PAGE",
    OPEN_REPAIR_GAME_SEL = "OPEN_REPAIR_GAME_SEL",
    OPEN_UNINSTALL_GAME_SEL = "OPEN_UNINSTALL_GAME_SEL",
    OPEN_SECURITY_CENTER = "OPEN_SECURITY_CENTER",
    OPEN_HARDWARE_CHECK_PAGE = "OPEN_HARDWARE_CHECK_PAGE",                       --打开硬件检测页面
    TOOL_BOX_ON_JS_CALLBACK_GM = "TOOL_BOX_ON_JS_CALLBACK_GM",                  --游戏管理页面js回调
    TOOL_BOX_ON_JS_CALLBACK_ST = "TOOL_BOX_ON_JS_CALLBACK_ST",                  --启动加速页面js回调
    TOOL_BOX_ON_JS_CALLBACK_NA = "TOOL_BOX_ON_JS_CALLBACK_NA",                  --网络加速页面js回调
    TOOL_BOX_ON_JS_CALLBACK_SE = "TOOL_BOX_ON_JS_CALLBACK_SE",                  --安全中心页面js回调
    TOOL_BOX_ON_JS_CALLBACK_GU = "TOOL_BOX_ON_JS_CALLBACK_GU",                   --游戏更新页面js回调
    TOOL_BOX_ON_JS_CALLBACK_HC = "TOOL_BOX_ON_JS_CALLBACK_HC",                   --硬件检测JS回调
    UPDATE_NETWORK_PAGE = "UPDATE_NETWORK_PAGE"                                 --刷新网络加速中心网页
} 

-- poptips
poptips_event = {
    SHOW_TIPS = "SHOW_TIPS",
    CLOSE_TIPS = "CLOSE_TIPS"                                                   --关闭tips窗口
}

customtips_event = {
    SHOW_CUSTOM_TIPS = "customtips_event.SHOW_CUSTOM_TIPS";
}

-- personal_center_event
personal_center_event = {
    JC_PERSONAL_INFO = "JC_PERSONAL_INFO",
    JC_PLAYER_INFO = "JC_PLAYER_INFO",
    JC_SIGN_IN_INFO = "JC_SIGN_IN_INFO",
    JC_SIGN_IN = "JC_SIGN_IN",
    JC_TASK_COM_INFO = "JC_TASK_COM_INFO",
    JC_TASK_LIST = "JC_TASK_LIST",
    JC_HOLLY_WOOD_REWARD_LSIT = "JC_HOLLY_WOOD_REWARD_LSIT",
    JC_BLUE_DIAMOND_COUPON = "JC_BLUE_DIAMOND_COUPON",
    JC_HOLLY_WOOD_CHK_FLAG = "JC_HOLLY_WOOD_CHK_FLAG",
    JC_BLUE_DIAMOND_CHK_FLAG = "JC_BLUE_DIAMOND_CHK_FLAG",
    JC_INDIVIDUAL_CENTER_MY_PRIVILEGE = "JC_INDIVIDUAL_CENTER_MY_PRIVILEGE",
    JC_ACTIVITY_EXT  = "JC_ACTIVITY_EXT",
    JC_PRIVILEGE_CHANGE_INFO = "JC_PRIVILEGE_CHANGE_INFO",
    JC_ROUTER_VENDOR_INFO = "JC_ROUTER_VENDOR_INFO",
    JC_GAMEOVER_PRIVILEGE_INFO = "JC_GAMEOVER_PRIVILEGE_INFO",
    CLOSE_LEVELUP_TIPS = "CLOSE_LEVELUP_TIPS",
    CLOSE_GAMEEND_TIPS = "CLOSE_GAMEEND_TIPS",
    OPEN_PRIVILEGE_CHANGE_WINDOW = "OPEN_PRIVILEGE_CHANGE_WINDOW",
    CHECK_QM_SOFTWARE_ENV = "CHECK_QM_SOFTWARE_ENV",
    JC_QM_SOFTWARE_CHK_FLAG = "JC_QM_SOFTWARE_CHK_FLAG",
    JC_QM_SOFTWARE_REWARD = "JC_QM_SOFTWARE_REWARD",
    JC_MOBILE_TGP_CHK_FLAG = "JC_MOBILE_TGP_CHK_FLAG",
    JC_MOBILE_TGP_REWARD = "JC_MOBILE_TGP_REWARD",
    JC_SET_START_LIST = "JC_SET_START_LIST",
    JC_GET_START_LIST = "JC_GET_START_LIST",
    JS_GET_INSTALL_STATE = "JS_GET_INSTALL_STATE",
    JS_GET_USER_SIGNATURE_AND_AREA_INFO = "JS_GET_USER_SIGNATURE_AND_AREA_INFO",
    JS_SAVE_USER_SIGNATURE_AND_AREA_INFO = "JS_SAVE_USER_SIGNATURE_AND_AREA_INFO",
}

-- open_link打开各种页面事件
-- 各页面监听这个事件，并对自己关心的type做处理
open_link_event = 
{
    OPEN_LINK = "OPEN_LINK_EVENT_OPEN_LINK",                                    -- param: {"type":"xxx"}，格式见“trunk\client\docs\design_docs\TGP内部链接格式.txt”
    OPEN_LINK_COMPATIBLE = "OPEN_LINK_COMPATIBLE",                              --兼容老的openLink,适用不需要理解具体业务的情况,参数来源于bin文件中配置的url字符串
    OPEN_HOMEPAGE = "OPEN_HOMEPAGE",                                            --ExtendBoard首页
    OPEN_GAMELIBRARY = "OPEN_GAMELIBRARY",                                      --游戏库首页  param: {'id':游戏分类ID(1:大型游戏，2:网页游戏，3:手机游戏)}
    OPEN_GAMELIBRARY_DETAILPAGE = "OPEN_GAMELIBRARY_DETAILPAGE",                --跳游戏详情页(游戏下载页) param: {'id':游戏ID}
    OPEN_GIFT_HOMEPAGE = "OPEN_GIFT_HOMEPAGE",                                  --礼包首页 
    OPEN_GIFT_DETAILPAGE = "OPEN_GIFT_DETAILPAGE",                              --跳礼包页面 param: {'id':游戏ID(游戏礼包页面), 90000(全部游戏), 90001(我的礼包), 90002(礼包抽奖页) }
    OPEN_TOOLBOX_HOMEPAGE = "OPEN_TOOLBOX_HOMEPAGE",                            --工具箱首页
    OPEN_TOOLBOX_NETWORK_ACC_PAGE = "OPEN_TOOLBOX_NETWORK_ACC_PAGE",            --游戏网络加速
    OPEN_TOOLBOX_STARTUP_SPEEDUP_PAGE = "OPEN_TOOLBOX_STARTUP_SPEEDUP_PAGE",    --游戏启动加速
    OPEN_TOOLBOX_GAME_MGR_PAGE = "OPEN_TOOLBOX_GAME_MGR_PAGE",                  --游戏管理
    OPEN_TOOLBOX_GAME_UPDATE_PAGE = "OPEN_TOOLBOX_GAME_UPDATE_PAGE",            --游戏更新
    OPEN_TOOLBOX_SECURITY_CNT_PAGE = "OPEN_TOOLBOX_SECURITY_CNT_PAGE",          --安全中心
    OPEN_TOOLBOX_LOL_REPAIR_PAGE = "OPEN_TOOLBOX_REPAIR_PAGE",                  --LOL修复工具
    OPEN_TOOLBOX_CF_REPAIR_PAGE = "OPEN_TOOLBOX_REPAIR_PAGE",                   --CF修复工具
    OPEN_TOOLBOX_GAME_AUTO_UPDATE_PAGE = "OPEN_TOOLBOX_GAME_AUTO_UPDATE_PAGE",  --游戏自动更新 param: {'game_id':0, 可指定游戏id} 
    OPEN_PRIVILEGE_PAGE = "OPEN_PRIVILEGE_PAGE",                                --我的特权
    OPEN_PERSONAL_CENTER_PAGE = "OPEN_PERSONAL_CENTER_PAGE",                    --个人中心
    OPEN_WEB_PAGE = "OPEN_WEB_PAGE",                                            --使用系统默认浏览器打开网页 param: {'url':url} 
    OPEN_WEBGAME = "OPEN_WEBGAME",                                              --热点直接拉起网页游戏 param: {'id':gameID} 
    OPEN_WEBGAME2 = "OPEN_WEBGAME2",                                            --热点直接拉起网页游戏（供x5的网页调用） param: {'id':app_id }
    OPEN_GAME_HOMEPAGE = "OPEN_GAME_HOMEPAGE",                                  --跳转到游戏主页 param: {'id':gameID}
    OPEN_GAME_HELPER_PAGE = "OPEN_GAME_HELPER_PAGE",                            --跳转到指定游戏的助手页面(非助手首页) param: {'id':gameID, 'page_url':url }
    OPEN_GAME_VIDEO = "OPEN_GAME_VIDEO",                                        --跳转到指定游戏的游戏视频(在该游戏助手的某个页面里面) param: {'id':gameID, 'page_url':url, 'video_url':url}
    OPEN_TGP_CONFIG = "OPEN_TGP_CONFIG",                                        --打开TGP的设置
    OPEN_DIRUI = "OPEN_DIRUI"                                                   --打开选区界面，param: {'game_id':game_id}
}

ui_event = {
    CHANGE_NONE = "",                                                    --没有事件
    CHANGE_GIFT_BRIEFINFO = "CHANGE_GIFT_BRIEFINFO",                    --礼包兑换-礼包基本信息-更新事件
    CHANGE_GIFT_NEW = "CHANGE_GIFT_NEW",                                --礼包兑换-新礼包信息  -更新事件
    CHANGE_GIFT_ACTIVECODE = "CHANGE_GIFT_ACTIVECODE",                    --礼包兑换-激活码礼包信息  -更新事件
    CHANGE_GIFT_RECOMMOND = "CHANGE_GIFT_RECOMMOND",                    --礼包兑换-推荐礼包信息-更新事件
    CHANGE_GIFT_DETAILINFO = "CHANGE_GIFT_DETAILINFO",                    --礼包兑换-礼包详细信息-更新事件
    CHANGE_GIFT_EXCHANGERSP = "CHANGE_GIFT_EXCHANGERSP",                --礼包兑换-礼包兑换结果-更新事件
    CHANGE_GIFT_EXCHANGERECORD = "CHANGE_GIFT_EXCHANGERECORD",            --礼包兑换-礼包兑换记录-更新事件

    CHANGE_ACCE_GAME_SPEED_UPDATE = "CHANGE_ACCE_GAME_SPEED_UPDATE",    --加速中心-游戏加速信息更新事件
    CHANGE_ACCE_ROUTE_UPDATE = "CHANGE_ACCE_ROUTE_UPDATE",                --加速中心-选路信息更新事件
    CHANGE_ACCE_LSP_REPAIRED = "CHANGE_ACCE_LSP_REPAIRED",                --加速中心-LSP修复结束事件
    CHANGE_ISP_REFRESH_END = "CHANGE_ISP_REFRESH_END",                    --加速中心-ISP刷新数据结束事件

    CHANGE_HOMEPAGE_UPDATE = "CHANGE_HOMEPAGE_UPDATE",                  --首页数据改变

    CHANGE_PLAYERINFO = "CHANGE_PLAYERINFO",                            --玩家信息改变
    CHANGE_LEVEL_UPGRADE = "CHANGE_LEVEL_UPGRADE",                        --用户升级
    CHANGE_LOGINWND_CLOSED = "CHANGE_LOGINWND_CLOSED",                    --登陆见面关闭，主界面显示
    CHANGE_PALLAS_READY = "CHANGE_PALLAS_READY",                        --PALLAS加载完成
    CHANGE_PALLAS_DONE = "CHANGE_PALLAS_DONE",                            --PALLAS加载失败
    CHANGE_UPDATE_SERVER_JS = "CHANGE_UPDATE_SERVER_JS",                --更新服务器信息到JS端
    CHANGE_CLOSE_GAME_LAUNCH = "CHANGE_CLOSE_GAME_LAUNCH",              --游戏扩展界面关闭事件
    CHANGE_DNF_STARTUP = "CHANGE_DNF_STARTUP",                          --DNF启动事件
    CHANGE_QUERY_DNF_READY = "CHANGE_QUERY_DNF_READY",                  --查询DNF第一个实例启动是否完成
    CHANGE_NOTIFY_DNF_READY = "CHANGE_NOTIFY_DNF_READY",                --回复DNF第一个实例启动是否完成
    CHANGE_QUERY_DNF_PREPARE = "CHANGE_QUERY_DNF_PREPARE",              --通知DNF双开准备
    CHANGE_NOTIFY_DNF_PERPARE = "CHANGE_NOTIFY_DNF_PERPARE",            --回复DNF双开准备结果
    CHANGE_All = "CHANGE_All"                                            --所有事件 
};

browser_event = {
    OPEN_TGP_BROWSER = "OPEN_TGP_BROWSER",  --param: {'url':url}
    OPEN_TGP_NEW_BROWSER = "OPEN_TGP_NEW_BROWSER", --param: {'url': url, title: title}
    PLAY_VIDEO = "PLAY_VIDEO",  --param: {'url':url, 'vid':vid, 'width':width, 'height'=height}当url不为空时，直接用浏览器打开url；url为空时，使用tgp的通用播放器打开指定vid资源
    OPEN_WEB_GAME = "OPEN_WEB_GAME",  --param: {'json':}
    OPEN_GAME_TOPIC_DETAIL = "OPEN_GAME_TOPIC_DETAIL",   --param: {'url':url}
    ON_TGP_BROWSER_CLOSED = "ON_TGP_BROWSER_CLOSED", --param: {'url':url}
    ON_SAVE_BROWSER_INFO = "ON_SAVE_BROWSER_INFO", --param: {'tab_id':tab_id, 'web_id':web_id}
    OPEN_IND_WEB_WND = "OPEN_IND_WEB_WND",  -- param: {"type":"open_web", "browser":"ind_web_wnd" , "url":url, "width":width, "height":height, "title":title, "use_ptlogin":use_ptlogin, "uniquekey":uniquekey, }
    CLOSE_ALL_IND_WEB_WND = "CLOSE_ALL_IND_WEB_WND",
};

game_menue_event = {
    OPEN_GAME_MENUE = "game_menue_event.OPEN_GAME_MENUE",               --打开游戏菜单 param {'xoffset':x, 'yoffset':y, 'game_id':game_id} 菜单按钮相对于屏幕的坐标
    HIDE_GAME_MENUE = "game_menue_event.HIDE_GAME_MENUE",               --隐藏游戏菜单
    OPEN_GAME_COMMUNITY = "game_menue_event.OPEN_GAME_COMMUNITY",       --打开游戏社区
};

banner_menu_event = {
    OPEN_GAME_MENUE = "banner_menu_event.OPEN_GAME_MENUE",                             --打开游戏菜单 param {'xoffset':x, 'yoffset':y, 'game_id':game_id} 菜单按钮相对于屏幕的坐标
    HIDE_GAME_MENUE = "banner_menu_event.HIDE_GAME_MENUE",                             --隐藏游戏菜单
    OPEN_GAME_COMMUNITY = "banner_menu_event.OPEN_GAME_COMMUNITY",                     --打开游戏社区
    CANCEL_SUBSCRIPTION_BTN_CLICK = "banner_menu_event.CANCEL_SUBSCRIPTION_BTN_CLICK", --点击移除订阅 param:{'game_id': xxx}
};

user_guide_event = {
    OPEN_USER_GUIDE_PAGE = "OPEN_USER_GUIDE_PAGE",
    CLOSE_USER_GUIDE_PAGE = "CLOSE_USER_GUIDE_PAGE",
    QM_DOWNLOAD_URL_CLICK = "QM_DOWNLOAD_URL_CLICK",
    SHOW_MAINFRAME_USER_GUIDE = "SHOW_MAINFRAME_USER_GUIDE",
    MAINFRAME_USER_GUIDE_BRINGTOTOP = "MAINFRAME_USER_GUIDE_BRINGTOTOP",
    MAINFRAME_USER_GUIDE_EXIT = "MAINFRAME_USER_GUIDE_EXIT",
};

game_web_event = {
    GAME_WEB_NEW_TAB = "new_tab",                           --param: {'json_str':}
    GAME_WEB_CLOSE_TAB = "close_tab",
    GAME_WEB_MAXIMIZE = "maximize",
    GAME_WEB_RESET_SIZE = "reset_size",
    GAME_WEB_SHOW_TAB = "show_tab",
    GAME_WEB_REFRESH_TAB = "refresh_tab",
    GAME_WEB_CLOSE_FRAME = "close_frame",
    GAME_WEB_POPUP_OK_CLICKED = "popup_ok_clicked",
    GAME_WEB_GET_POPUP_DATA = "get_popup_data",
};


dnf_helper_event = {
    LOAD_SUCCESS
};

mult_account_event = {
    MULT_ACCOUNT_LOAD_SUCCESS = "LOAD_SUCCESS",
    MULT_ACCOUNT_UPDATE_LIST = "UPDATE_LIST",
    MULT_ACCOUNT_GAME_STATE = "UPDATE_STATE",
    MULT_ACCOUNT_ACCOUNT_WARNING = "ACCOUNT_WARNING",
    MULT_ACCOUNT_ACCOUNT_WARNING_HIDE = "ACCOUNT_WARNING_HIDE",
    MULT_ACCOUNT_SWITCH_ACCOUNT_LIST_DLG = "MULT_ACCOUNT_SWITCH_ACCOUNT_LIST_DLG",
};

-- andoird_vm
android_vm_event = {
    ANDROID_LAUNCH_GAME = "ANDROID_LAUNCH_GAME",    --param:{none}
    ANDROID_INPUT_CONFIG = "ANDROID_INPUT_CONFIG",    --param:{none}
    ANDROID_GAME_WINDOW_RESIZE = "ANDROID_GAME_WINDOW_RESIZE",    --param:{none}
    ANDROID_STOP_GAME = "ANDROID_STOP_GAME",   --param:{none}
    ANDROID_SELECT_QQ_LOGIN = "ANDROID_SELECT_QQ_LOGIN",   --param:{none}
    ANDROID_SELECT_WECHAT_LOGIN = "ANDROID_SELECT_WECHAT_LOGIN",   --param:{none}
    ANDROID_SELECT_CANCEL_LOGIN = "ANDROID_SELECT_CANCEL_LOGIN",   --param:{none}
}

-- update tips
update_tips_event = {
    OPEN_UPDATE_TIPS = "OPEN_UPDATE_TIPS"   --param:{none}
}
------------------------------------------
--群列表事件
group_event = {
    SHOW_GROUP_TIPS = "group_event.SHOW_GROUP_TIPS",        --param :{"bShow":true, "group_id":id, "x":x, "y":y, "action":xx}   
                                                            -- 显示mini群资料tips bShow=false时，group_id/x/y不用填写， 
                                                            -- action 1是立即关闭， action:0是延迟关闭
                                                            -- bShow = true时，action不用填写
    SHOW_GROUP_MENU = "group_event.SHOW_GROUP_MENU",        --param :{"bShow":true, "group_id":id, "x":x, "y":y}   群右键菜单
    SHOW_TALK_DIALOG = "group_event.SHOW_TALK_DIALOG",      --param :{"groups":[id1, id2]} 显示聊天窗口
    SHOW_GROUP_LIST = "group_event.SHOW_GROUP_LIST",        --param :{} 显示群列表
    SHOW_CREATE_GROUP_DIALOG = "group_event.SHOW_CREATE_GROUP_DIALOG",  ---param:{} 显示创建群窗口
    SHOW_GROUP_SEARCH_DIALOG = "group_event.SHOW_GROUP_SEARCH_DIALOG",  --param:{} 显示群查找窗口
    SHOW_GROUP_CENTER = "group_event.SHOW_GROUP_CENTER", --param:{"group_id":"xxxxxxxx"} 显示群资料数据
    GROUP_CLEAR_MESSAGE = "group_event.GROUP_CLEAR_MESSAGE",  --param :{"group_id":id}                                                          
    GROUP_NEW_MESSAGE_COME = "group_event.GROUP_NEW_MESSAGE_COME",  --param :{"group_id":id}
    SHOW_MESSAGE_BOX_DIALOG = "group_event.SHOW_MESSAGE_BOX_DIALOG",    --param:{} 消息盒子
    SHOW_FRIEND_LIST = "group_event.SHOW_FRIEND_LIST",        --param :{} 显示好友列表
    SHOW_FRIEND_TALK_DIALOG = "group_event.SHOW_FRIEND_TALK_DIALOG",      --param :{"friends":[id1, id2]} 显示聊天窗口                                                      
    FRIEND_NEW_MESSAGE_COME = "group_event.FRIEND_NEW_MESSAGE_COME",  --param :{"group_id":id}  
    SHOW_NOTIFY_COUNT_FLAG = "group_event.SHOW_NOTIFY_COUNT_FLAG", --param:{"number":99}
    FRIEND_CLEAR_MESSAGE = "group_event.FRIEND_CLEAR_MESSAGE",  --param :{"friend_id":id}
    SHOW_PERSONAL_CENTER = "group_event.SHOW_PERSONAL_CENTER", ---- param:{"friend_id":id, "param":"xxxx"} 方便web打开个人中心，增加
                                                                                                        -- web 透传参数，放在打开个人中心的url中
                                                                                                        -- 参考聊天窗口打开个人中心例子
    SHOW_FRIEND_MENU = "group_event.SHOW_FRIEND_MENU",        --param :{"bShow":true, "friend_id":id, "x":x, "y":y}   好友右键菜单
    SHOW_FRIEND_TIPS = "group_event.SHOW_FRIEND_TIPS",        --param :{"bShow":true, "friend_id":id, "x":x, "y":y, , "action":xx}   
                                                            -- 显示好mini资料卡 tips bShow=friend_id/x/y不用填写，
                                                            -- action 1是立即关闭， action:0是延迟关闭
                                                            -- bShow = true时，action不用填写
    GROUP_COUNT_CHANGED = "group_event.GROUP_COUNT_CHANGED",        --param :{}   群成员个数变化
    FRIEND_COUNT_CHANGED = "group_event.FRIEND_COUNT_CHANGED",        --param :{}   好友成员个数变化
    SHOW_GROUP_SEARCH_MENU = "group_event.SHOW_GROUP_SEARCH_MENU",  --param :{"x":x, "y":y}   群创建或者查找群按钮菜单
    SHOW_FRIEND_SEARCH_MENU = "group_event.SHOW_FRIEND_SEARCH_MENU",--param :{"x":x, "y":y}   好友按钮菜单

    SHOW_GROUP_ON_MAP_DILAOG = "group_event.SHOW_GROUP_ON_MAP_DILAOG", -- 显示附件地图上的群的窗口,无参数
    SHOW_RIGHT_CORNER_POP_WND = "group_event.SHOW_RIGHT_CORNER_POP_WND", --param :{"bShow": true or false, x":x, "y":y} 鼠标Hover在右下角图标的坐标
    GROUP_INFO_UPDATED = "group_event.GROUP_INFO_UPDATED", --param :{"group": {group_info}} 群信息更新通知

    
    SHOW_MSG_BOX_NOTIFY_REDDOT = "group_event.SHOW_MSG_BOX_NOTIFY_REDDOT", --param {} 主面板通知按钮显示小红点时发送
    CLEAR_MSG_BOX_NOTIFY_REDDOT = "group_event.CLEAR_MSG_BOX_NOTIFY_REDDOT", --param {} 主面板通知按钮清除小红点时发送

    GROUP_HAVE_UNREAD_MESSAGE = "group_event.GROUP_HAVE_UNREAD_MESSAGE", --param :{"group_id": id} 群有未读消息
    FRIEND_HAVE_UNREAD_MESSAGE = "group_event.FRIEND_HAVE_UNREAD_MESSAGE", --param :{"friend_id": id} 好友有未读消息
    PWG_FRIEND_HAVE_UNREAD_MESSAGE = "group_event.PWG_FRIEND_HAVE_UNREAD_MESSAGE", --param :{ } 好友有未读消息

    SHOW_GAME_FRIEND_DIALOG = "group_event.SHOW_GAME_FRIEND_DIALOG", --param :{} 打开game好友dialog
    SHOW_QQ_FRIEND_DIALOG = "group_event.SHOW_QQ_FRIEND_DIALOG", --param :{} 打开qq好友dialog

    OPEN_GROUP = "group_event.OPEN_GROUP", --param:{"group_id":"xxx"} 群列表新增一个群
    REMOVE_GROUP_FROM_GROUP_LIST = "group_event.REMOVE_GROUP_FROM_GROUP_LIST", --param:{"group_id":"xxx"} 群列表删除一个群

    REMOVE_FRIEND_FROM_FRIEND_LIST = "group_event.REMOVE_FRIEND_FROM_FRIEND_LIST", --param:{"friend_id":"xxx"} 好友列表删除一个好友
    ADD_FRIEND_INTO_FRIEND_LIST = "group_event.ADD_FRIEND_INTO_FRIEND_LIST", --param:{"friend_id":"xxx"} 好友列表增加一个好友
    

    TGP_CLOSE = "group_event.TGP_CLOSE", --param:{} TGP退出事件
    SHOW_FRIEND_TAB_RED_POINT = "group_event.SHOW_FRIEND_TAB_RED_POINT", --param:{"show":"true"} 显示好友tab小红点
    SHOW_GROUP_TAB_RED_POINT = "group_event.SHOW_GROUP_TAB_RED_POINT", --param:{"show":"true"} 显示好友tab小红点
    PWG_SHOW_SOCIAL_PANEL_RED_POINT = "group_event.PWG_SHOW_SOCIAL_PANEL_RED_POINT", --param:{"show":"true"} 显示社交按钮小红点
    PWG_CLEAR_SOCIAL_PANEL_RED_POINT = "group_event.PWG_CLEAR_SOCIAL_PANEL_RED_POINT", --param:{} 清除社交按钮小红点

    OTHER_MODULE_GET_FRIEND_LIST = "group_event.OTHER_MODULE_GET_FRIEND_LIST",  --param:{} 获取用户tgp好友列表
    SHOW_CREATE_DISCUSSION_DIALOG = "group_event.SHOW_CREATE_DISCUSSION_DIALOG",  --param:{} 显示创建讨论组窗口

    UPDATE_FRIEND_REMARKS = "group_event.UPDATE_FRIEND_REMARKS", --parsm:{friend_id, remark}
};

-- rail_proxy
rail_proxy_event =
{
    QUERY_GAME_INFO_ON_WEB_START_GAME    = "QUERY_GAME_INFO_ON_WEB_START_GAME",
    QUERY_GAME_INFO_ON_BANNER_START_GAME = "QUERY_GAME_INFO_ON_BANNER_START_GAME",
    QUERY_GAME_INFO_ON_DOWNLOAD_GAME = "QUERY_GAME_INFO_ON_DOWNLOAD_GAME",
    QUERY_GAME_INFO_ON_DOWNLOAD_GAME_FROM_BANNER_BTN = "QUERY_GAME_INFO_ON_DOWNLOAD_GAME_FROM_BANNER_BTN",
    QUERY_GAME_INFO_ON_INIT_DOWNLOAD_STATU = "QUERY_GAME_INFO_ON_INIT_DOWNLOAD_STATU"
};

-- 多tab浏览器事件，用来做按需加载
tab_browser_event = {
    OPEN_NEW_TAB_SINGLETON = "tab_browser_event.OPEN_NEW_TAB_SINGLETON", --param:{"url":url, "title"":title, tgp_browser_type:"", size_type:"MAX|NORMAL"} 新建tab页面到一个唯一的多tab窗口中
    CLOSE_TAB_BROWSER_WINDOW = "tab_browser_event.CLOSE_TAB_BROWSER_WINDOW",
};

-- 假cf的tcls
cf_fake_tcls_event= {
    OPEN_FAKE_TCLS = "cf_fake_tcls_event.OPEN_FAKE_TCLS", --param:{} 打开一个很像tcls的假的cf tcls
};

suggest_predownload_event = {
    SUGGEST_PREDOWNLOAD = "suggest_predownload_event.SUGGEST_PREDOWNLOAD", --param:{"game_id":game_id} 显示推荐开启预下载的弹框
    CLOSE = "CLOSE", -- 关闭，无参数
};

-- tgp 页游浏览器事件
webgame_browser_event = {
    ON_GAME_START = "webgame_browser_event.ON_GAME_START",  -- param: {"game_id":game_id}
    ON_GAME_END = "webgame_browser_event.ON_GAME_END",      -- param: {"game_id":game_id}
}


social_event = {
    INVITE_LOL_KAIHIE = "social_event.INVITE_LOL_KAIHIE" , --param{friend_id:"xxx", nick_name:"xxx"}
    OPEN_FRIENDS_INFO_TIPS_WND = "social_event.OPEN_FRIENDS_INFO_TIPS_WND", --param{pos_x:ddd, pos_y:ddd}
    WEB_CALL_SOCIAL = "social_event.WEB_CALL_SOCIAL", --param {event:"id", json:"xxx"}
    CLICK_GAME_TAB_BTN = "social_event.CLICK_GAME_TAB_BTN", --param{} 点击游戏tab
    CLICK_SOCIAL_SESSION_TAB_BTN = "social_event.CLICK_SOCIAL_SESSION_TAB_BTN", --param{} 点击社交消息tab
    CLICK_SOCIAL_CONTACT_TAB_BTN = "social_event.CLICK_SOCIAL_CONTACT_TAB_BTN", --param{} 点击社交联系人tab
    SOCIAL_PANEL_POSITION_CHANGED = "social_event.SOCIAL_PANEL_POSITION_CHANGED", --param{} 无参数
    SOCIAL_FRIEND_COUNT_CHANGE = "social_event.SOCIAL_FRIEND_COUNT_CHANGE", --param{} 无参数
    SOCIAL_GROUP_COUNT_CHANGE = "social_event.SOCIAL_GROUP_COUNT_CHANGE", --param{} 无参数
    SOCIAL_REMOVE_GROUP_FROM_LIST = "social_event.SOCIAL_REMOVE_GROUP_FROM_LIST", --param{group_id:xxx} 从群列表删除一个群
    SOCIAL_TIPS_SHOW    = "social_event.SOCIAL_TIPS_SHOW", --param {is_show: true or false};
    CLOSE_SOCIAL_AD_TIPS = "social_event.CLOSE_SOCIAL_AD_TIPS", --param {ad_id:xxxx} 关闭社交推广tips
    TALK_ACTIV_SESSION_CHANGED = "social_event.TALK_ACTIV_SESSION_CHANGED", --param {type:"firend" or "group", id:"xx"}聊天会话切换事件
    SET_LOL_GAMING_USER_LIST = "social_event.SET_LOL_GAMING_USER_LIST",  --param {user_list: ["123", "345456"]} 玩lol游戏的用户列表
    LOL_GAME_USER_STATUS_EXCEPTION = "social_event.LOL_GAME_USER_STATUS_EXCEPTION", --param {tgp_id : ""} lol游戏状态异常
    GET_LOL_GAMING_FRIEND_LIST_DONE = "social_event.GET_LOL_GAMING_FRIEND_LIST_DONE",  -- parame {} 获取玩lol游戏的好友列表完成
    LIVE_ROOM_INVITED_IN_GROUP = "LIVE_ROOM_INVITED_IN_GROUP", --param
    QUERY_GAME_BUY_INFO_FOR_JH = "QUERY_GAME_BUY_INFO_FOR_JH",
    GET_RECOMMENT_GROUP_SUCCESS = "GET_RECOMMENT_GROUP_SUCCESS", --获取推荐群组成功
    SHOW_CREATE_GROUP_MENU = "social_event.SHOW_CREATE_GROUP_MENU",
}; 

plugin_forward_event = {
    notify_event = "plugin_forward_event.notify_event",      -- param:{'event_name':event_name, 'game_id': game_id, 'data':json_str}
    response_event = "plugin_forward_event.response_event",      -- param:{'game_id': game_id, 'data':json_str}
};
frame_bottom_event = {
    CHANGE_GAME_PLUGIN_PANEL = "CHANGE_GAME_PLUGIN_PANEL", --param{game_id:xxxx}
    CHANGE_GAME_PLUGIN_SIMPLE_PANEL = "CHANGE_GAME_PLUGIN_SIMPLE_PANEL", --param{game_id:xxxx}
    PLUGIN_LIFE_CYCLE_EVENT = "PLUGIN_LIFE_CYCLE_EVENT",   --param{game_id:xxxx}
    DLC_BTN_CLICK_EVENT = "DLC_BTN_CLICK_EVENT", --param{}
    GIFT_ICON_LAYOUT_EVENT = "GIFT_ICON_LAYOUT_EVENT",  --param{}
    GIFT_WHITE_LIST_CFG = "frame_bottom_event.GIFT_WHITE_LIST_CFG",  -- param{'game_id': xxx, 'is_in_white_list': 0 : 1}
    
    BRANCH_LIST_SHOW = "BRANCH_LIST_SHOW", -- param:{is_show:xxx, branch_infos:{'id':branch_id, name:"branch_name"}...} 展示选择分支窗口
    RAIL_PROPERTIES_BTN_CLICK_EVENT = "RAIL_PROPERTIES_BTN_CLICK_EVENT", --param:{'game_id': xxx}

    PROGRESS_NODE_LAYOUT_EVENT = "PROGRESS_NODE_LAYOUT_EVENT",  --param{}
};

game_keeper_event = {
    GAME_KEEPER_ON_JS_CALLBACK_LOCAL_GAME_PAGE = "GAME_KEEPER_ON_JS_CALLBACK_LOCAL_GAME_PAGE",
};

unlock_branch_event = {
    ASYNC_CHECK_EVENT = "ASYNC_CHECK_EVENT", --param:{branch_info:xxx,callback:xxx}
    CLOSE_DLG_EVENT = "CLOSE_DLG_EVENT"
}

badge_event = {
    OPEN_BADGE_WIN = "badge_event.OPEN_BADGE_WIN",
    OPEN_BADGE_DETAIL_WIN = "badge_event.OPEN_BADGE_DETAIL_WIN",
    OPEN_BADGE_POINTS_WIN = "badge_event.OPEN_BADGE_POINTS_WIN",
}

offline_event = {
    WINDOW_POSITION_CHANGE = "offline_event.WINDOW_POSITION_CHANGE"
}

branch_selector_event = {
    OPEN_GAME_BRANCH_SELECTOR = "branch_selector_event.OPEN_GAME_BRANCH_SELECTOR",
}
